import request from '@/utils/request'

// 查询walmart商品报告列表
export function listReport(query) {
  return request({
    url: '/datacenter/report/list',
    method: 'get',
    params: query
  })
}

// 查询walmart商品报告详细
export function getReport(data) {
  return request({
    url: '/datacenter/report',
    method: 'get',
    params: data
  })
}

// 新增walmart商品报告
export function addReport(data) {
  return request({
    url: '/datacenter/report',
    method: 'post',
    data: data
  })
}

// 修改walmart商品报告
export function updateReport(data) {
  return request({
    url: '/datacenter/report',
    method: 'put',
    data: data
  })
}

// 删除walmart商品报告
export function delReport(itemReportId) {
  return request({
    url: '/datacenter/report/' + itemReportId,
    method: 'delete'
  })
}

// 下载walmart报告
export function downloadReport(data) {
  return request({
    url: '/datacenter/report/download',
    method: 'get',
    params: data
  })
}
